package com.faradel.pharmapp.service;

import java.util.List;

import javax.annotation.Resource;

import org.faradel.pharmapp.entities.PharmaUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.faradel.pharmapp.dao.ValidationDAO;

@Service("validationServiceImpl")
public class ValidationServiceImpl implements ValidationServiceInterface
{
    @Resource
    ValidationDAO validationDaoImpl;

    @Override
    @Transactional(readOnly = false)
    public PharmaUser verifyUser(String name, String password)
    {
        return getValidationDaoImpl().verifyUser(name, password);
    }

    @Override
    public String getUserName(String email)
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getPassword(String username)
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<String> getSecurityQuestion(String email)
    {
        // TODO Auto-generated method stub
        return null;
    }

    public ValidationDAO getValidationDaoImpl()
    {
        return validationDaoImpl;
    }

    public void setValidationDaoImpl(ValidationDAO validationDaoImpl)
    {
        this.validationDaoImpl = validationDaoImpl;
    }
}
